import request from '@/utils/request'

// 查询trainingDay列表
export function listTrainingDay(query) {
    return request({
        url: '/training/trainingDay/list',
        method: 'get',
        params: query
    })
}

// 查询trainingDay详细
export function getTrainingDay(id) {
    return request({
        url: '/training/trainingDay/' + id,
        method: 'get'
    })
}

// 新增trainingDay
export function addTrainingDay(data) {
    return request({
        url: '/training/trainingDay',
        method: 'post',
        data: data
    })
}

// 修改trainingDay
export function updateTrainingDay(data) {
    return request({
        url: '/training/trainingDay',
        method: 'put',
        data: data
    })
}

// 删除trainingDay
export function delTrainingDay(id) {
    return request({
        url: '/training/trainingDay/' + id,
        method: 'delete'
    })
}

// 导出trainingDay
export function exportTrainingDay(query) {
    return request({
        url: '/training/trainingDay/export',
        method: 'get',
        params: query
    })
}